package com.study.dao;

import com.study.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * Created by bunny on 2017/8/26.
 */

@Repository
public interface UserDao {
    List<User> findAll();

    User find(String id);

    int add(User user);

    int update(User user);

    int delete(@Param("id") String id);

    int login(User user);

}
